package com.demo.boss.models.request;

import lombok.Data;

import javax.validation.constraints.Email;
import javax.validation.constraints.NotNull;
import javax.validation.constraints.Pattern;
import javax.validation.constraints.Size;

@Data
public class UserEditRequest {
    private String userNo;
    @NotNull(message = "登录名不能为空")
    @Size(min = 3,max = 15,message = "登录名称在{min}-{max}个字符")
    private String loginName;
    @NotNull(message = "手机号不能为空")
    @Pattern(regexp = "^1[3-9]\\d{9}$",message = "手机号格式错误")
    private String phone;
    @NotNull(message = "商户名不能为空")
    private String shopName;
    @NotNull(message = "经营范围不能为空")
    private String shopScope;
    @NotNull(message = "邮箱不能为空")
    @Email(message = "邮箱格式错误")
    private String userEmail;
}
